package ru.shadieq.finance.tracker.persistent.model;

import ru.shadieq.finance.tracker.model.Currency;

import javax.persistence.Column;
import javax.persistence.Embeddable;
import javax.persistence.EnumType;
import javax.persistence.Enumerated;

/**
 * Created by Shadieq on 14.12.2014.
 */
@Embeddable
public class Expense {
    @Column
    private Double amount;

    @Column
    @Enumerated(EnumType.STRING)
    private Currency currency;

    @Column
    private String reason;

    public Currency getCurrency() {
        return currency;
    }

    public void setCurrency(Currency currency) {
        this.currency = currency;
    }

    public Double getAmount() {
        return amount;
    }

    public void setAmount(Double amount) {
        this.amount = amount;
    }

    public String getReason() {
        return reason;
    }

    public void setReason(String reason) {
        this.reason = reason;
    }
}
